package com.huike.clues.mapper;


import com.huike.clues.domain.TbClueTrackRecord;
import com.huike.clues.domain.TbClueTrackRecordResult;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import com.huike.clues.domain.vo.FalseClueVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 线索跟进记录Mapper接口
 * @date 2021-04-19
 */
public interface TbClueTrackRecordMapper {
    /*添加线索跟进信息*/
    void addCTRVo(@Param("tbr") ClueTrackRecordVo tbClueTrackRecord,@Param("username") String username);
    /*添加跟进线索时更新线索信息*/
    void updateClueTrackRecord(ClueTrackRecordVo tbClueTrackRecord);
    /*查询线索跟进信息*/
    List<TbClueTrackRecordResult> list(Long clueId);
    /*根据线索id查询线索跟进条数*/
    Integer getTbClueCount(Long clueId);
    /*根据线索id删除线索跟进信息*/
    void deleteClueTrackRecordById(Long id);
    /*根据线索id添加伪线索到线索跟进表*/
    void addFlaseClueTrackRecord(@Param("id") Long id,@Param("username") String username,
                                 @Param("fcvo") FalseClueVo falseClueVo);
}
